home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Frameworks / ControlStripShell 1.1 / CSShell.h < prev    next >
C/C++ Source or Header  |  1996-04-01  |  1KB  |  53 lines

  1. #pragma once
  2.  
  3. enum{
  4.     Resolution1Index = 2,    
  5.     Resolution2Index,
  6.     Resolution3Index,
  7.     Resolution4Index,
  8.     Resolution5Index,
  9.     Resolution6Index,
  10.     dashIndex,
  11.     MirroringOnIndex,
  12.     MirroringOffIndex,
  13.     BlackandWhiteIndex,
  14.     FourGraysIndex,
  15.     FourColorsIndex,
  16.     SixteenGraysIndex,
  17.     SixteenColorsIndex,
  18.     TwoFiftySixGraysIndex,
  19.     TwoFiftySixColorsIndex,
  20.     ThousandsIndex,
  21.     MillionsIndex
  22. };
  23.  
  24.  
  25. #define kPopupMenuID        256    // STR# ID
  26. #define kArrowPictID        256 // arrow pict ID
  27. #define kHelpStringIndex    1    // index of the help string
  28. #define kDRVRStringIndex    2    // index of the DRVR string
  29. #define    kIconWidth            16    // width of the ics8
  30.  
  31. #define width(rect)            ((rect).right - (rect).left)    // macro for rect width
  32. #define height(rect)        ((rect).bottom - (rect).top)    // macro for rect height
  33. #define PicFrame(what)        ((**MyGlobals.what).picFrame)    // macro for picture frame rect
  34. #define pstrcpy(dst, src)    (BlockMove((src), (dst), (src)[0] + 1))
  35.  
  36. #include <Icons.h>
  37. #include <ControlStrip.h>
  38.  
  39. typedef struct
  40. {
  41.     Handle            iconSuite;
  42.     MenuHandle        myMenuH;
  43.     Handle            myStrings;
  44.     PicHandle        myArrowPict;
  45. } MyGlobals, *MyGlobalPtr, **MyGlobalHandle;
  46.  
  47. void DoCSTrack(MyGlobalHandle myGlobals, Rect *statusRect, GrafPtr statusPort);
  48. void DoCSDraw(MyGlobalHandle myGlobals, Rect *statusRect, GrafPtr statusPort);
  49. unsigned long DoCSTickle(MyGlobalHandle myGlobals, Rect *statusRect, GrafPtr statusPort);
  50. void DoCSClose(MyGlobalHandle myGlobals);
  51. long DoCSInit(void);
  52. void DoCSClick(MyGlobalHandle myGlobals, const Rect    *statusRect);
  53.